package com.hyc.service.impl;

import com.hyc.Dao.helloDao;
import com.hyc.factory.beanfactory;
import com.hyc.service.helloservice;

import java.util.List;

/**
 * @projectName: SpringIOC
 * @package: com.hyc.service.impl
 * @className: helloServiceImpl
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2022/3/24 15:55
 * @version: 1.0
 */
public class helloServiceImpl implements helloservice {
    private helloDao helloDao = (helloDao) beanfactory.getDao("helloDao");

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            helloDao helloDao = (helloDao) beanfactory.getDao("helloDao");
            System.out.println(helloDao);
        }
    }

    @Override
    public List<String> findAll() {
        return helloDao.findAll();
    }
}
